﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace _0712502_0712504_DesignPatternGame
{
    public abstract class TankEngine
    {
        protected SoundEffect sound;
        public SoundEffect Sound
        {
            get { return sound; }
            set { sound = value; }
        }

        protected float _speed;
        public float Speed
        {
            get { return _speed; }
            set { _speed = value; }
        }

        public void PlaySound()
        {
            this.sound.Play();
        }

        public void UpgradeEngine(int value)
        {
            this._speed += value;
        }

        public virtual TankEngine Clone()
        {
            return null;
        }
    }
}
